package com.gitee.minimalismstyle.fresh.simple.api.service

import com.gitee.minimalismstyle.fresh.common.core.domain.R
import com.gitee.minimalismstyle.fresh.common.core.domain.Simple
import io.swagger.annotations.Api
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

@Api(value = "option", tags = ["通用功能接口"])
@RestController
@RequestMapping("option")
interface OptionService {

    @GetMapping("findMapByType")
    fun findMapByType(type: String, param: String): R<Map<String, Simple>>

    @GetMapping("findByType")
    fun findByType(type: String, param: String): R<List<Simple>>

}